import db from './localstorage.js'

export const log = function() {
  if (import.meta.env.MODE === 'development' || db.get('USE_LOG') === 'true')
  console.log.apply(console, arguments)
}
export const error = function() {
  if (import.meta.env.MODE === 'development' || db.get('USE_LOG') === 'true')
  console.error.apply(console, arguments)
}
export const info = function() {
  if (import.meta.env.MODE === 'development' || db.get('USE_LOG') === 'true')
  console.info.apply(console, arguments)
}

